<?php
  
  
  class exchange_data {
      
      
      
      
      
      
      static function uploadData($url, $table, $field = "") {
          
          $csvFilename = "/tmp/upload_data.csv";
          
          file::deleteFile($csvFilename);
          csv::exportCsv($csvFilename, $table, "", "", $field);
          
          
          
          upload::uploadFile($csvFilename, $url);
          
          
          
          
          
      }
      
      
      
      
      
      
      
      
      
      
      
      
  }
  
  
  
  
  
  
  
  
  
  
  
?>
